<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">订单详情--填写完物流信息记得点发货</h3>
        <div class="actions pull-right">
            <!--<i class="fa fa-chevron-down"></i>-->
            <!--<i class="fa fa-times"></i>-->
            <input type="button" class="btn btn-success btn-sm" id="send-offer" #if($order.wuliuNbr)value="修改" #else  value="发货"  #end date-order-id="$order.id">
        </div>
    </div>
    <div class="panel-body">
        <div class="form-horizontal form-border">
            <div class="form-group">
                <label class="col-sm-3 control-label">物流公司</label>
                <div class="col-sm-6">
                    <select id="wuliuCompany" class="form-control input-sm" >
                        <option value="中通" #if("$!order.wuliuType" == "中通") selected #end>中通</option>
                        <option value="百事汇通" #if("$!order.wuliuType" == "百事汇通") selected #end>百事汇通</option>
                        <option value="顺丰" #if("$!order.wuliuType" == "顺丰") selected #end>顺丰</option>
                        <option value="圆通" #if("$!order.wuliuType" == "圆通") selected #end>圆通</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物流单号</label>
                <div class="col-sm-6">
                    <input type="text" id="wuliuNbr" class="form-control" value="$!order.wuliuNbr" #if($order.wuliuNbr) readonly
                    #end>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单号</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.orderNbr" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单创建时间</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.createTime">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单状态</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.status">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">用户手机</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.phone">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品数量</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.offerCnt">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">实付订单金额</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.orderFee">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">收货信息</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control" value="$order.address">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注</label>
                <div class="col-sm-6">
                    <input type="text" readonly class="form-control">
                </div>
            </div>

        </div>
        <div class="row">
            <label class="col-sm-2"></label>
            <label class="col-sm-10 control-label">商品列表 商品合计：$order.orderFee 元   运费：$order.freight 元   优惠 ：-$order.discount 元</label>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label"></label>
            <div class="col-md-8">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>名称</th>
                                <th>单价</th>
                                <th>购买数量</th>
                                <th>金额</th>
                                <th>详情</th>
                            </tr>
                            </thead>
                            <tbody>
                            #foreach($offer in $order.offers)
                            <tr>
                                <td>$!offer.offerName</td>
                                <td>$!offer.offer_price</td>
                                <td>$offer.number</td>
                                #set($fee = $offer.offer_price * $offer.number)
                                <td>$fee</td>
                                <td>$offer.desc</td>
                            </tr>
                            #end
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
        #if($actions)
            <div class="row">
                <label class="col-sm-2"></label>
                <label class="col-sm-10 control-label">操作记录</label>
            </div>
            <div class="row">
                <label class="col-sm-2 control-label"></label>
                <div class="col-md-8">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>操作类型</th>
                                    <th>操作时间</th>
                                    <th>操作人</th>
                                </tr>
                                </thead>
                                <tbody>
                                #foreach($action in $actions)
                                    <tr>
                                        <td>$action.operation</td>
                                        <td>$action.create_time</td>
                                        <td>$action.operation_people</td>
                                    </tr>
                                #end
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        #end



    </div>
</div>

<script src="/shop/order/detail.js"></script>